package com.tsingtree.modular.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsingtree.base.pojo.page.LayuiPageInfo;
import com.tsingtree.modular.entity.NanMessageMaster;
import com.tsingtree.modular.model.params.NanMessageMasterParam;
import com.tsingtree.modular.model.result.NanMessageMasterResult;

import java.util.List;

/**
 * <p>
 * 站内信总览 服务类
 * </p>
 *
 * @author jagger
 * @since 2024-07-08
 */
public interface NanMessageMasterService extends IService<NanMessageMaster> {

    /**
     * 新增
     *
     * @author jagger
     */
    void add(NanMessageMasterParam param);

    /**
     * 删除
     *
     * @author jagger
     */
    void delete(NanMessageMasterParam param);

    /**
     * 更新
     *
     * @author jagger
     */
    void update(NanMessageMasterParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jagger
     */
    NanMessageMasterResult findBySpec(NanMessageMasterParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jagger
     */
    List<NanMessageMasterResult> findListBySpec(NanMessageMasterParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jagger
     */
     LayuiPageInfo findPageBySpec(NanMessageMasterParam param);

//    void del(NanMessageMaster nanMessageMaster);
}
